#include <stdio.h>
#include <stdlib.h>

typedef struct student{
	char name[20];
	char gender[8];
	float score;
}Student;

float avarage(int (*ptr)[2], int num)
{
	int i = 0;
	float ava = 0;
	for(; i < num; ++i)
	{
		ava += *(*ptr + i);
	}
	ava /= num;
	return ava;
}


int main(int argc, char **argv)
{
	Student *student = (Student*)malloc(sizeof(Student) * 2);
	int i = 0;
	if(student == NULL)
	{
		perror("malloc error");
		return -1;
	}
	for(; i < 2; ++i)
	{
		scanf("%s%s%f",(student+i)->name, (student+i)->gender, &(student+i)->score);
	}
	for(i = 0; i < 2; ++i)
	{
		printf("%s %s %f\n",(student+i)->name, (student+i)->gender, (student+i)->score);
	}
	free(student);
	return 0;
}
